package demo1;

public class user {
    private int userAge;

    private String userName;

    public user(int userAge, String userName) {
        this.userAge = userAge;
        this.userName = userName;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getUserAge() {
        return userAge;
    }

    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return "user{" +
                "userAge=" + userAge +
                ", userName='" + userName + '\'' +
                '}';
    }
}
